import "dotenv/config";
import { routes } from "./router";
import { initMP3 } from "./db/media";
import { Application } from "./app";

// 开启 log
require("log-node")();

Application.init()
	.applyStatic()
	.applyRoutes(routes)
	.start(process.env.PORT, async () => {
		await initMP3();
	});
